package org.ww.edu.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.ww.commonutils.R;
import org.ww.commonutils.commentvo.MemberComment;

import javax.servlet.http.HttpServletRequest;

//服务发现（vod），出错了执行熔断器
@FeignClient(value = "ucenter",fallback = MemberFileDegradeFeignClient.class)
@Component
public interface MemberClient {
    //根据id获取用户信息
    @GetMapping("/ucenter/member/getUserInfoById/{id}")
    public MemberComment getUserInfoById(@PathVariable(value = "id") String id);

}